.class public Lcom/nbi/map/route/RouteRequest;
.super Ljava/lang/Object;

# interfaces
.implements Lcom/nbi/common/NBIRequest;


# instance fields
.field private lc:Lnbisdk/h;

.field private ld:Lnbisdk/ag;

.field private le:Lcom/nbi/common/NBIContext;

.field private lf:Lcom/nbi/map/route/RouteListener;


# direct methods
.method protected constructor <init>()V
    .locals 0

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method public constructor <init>(Lcom/nbi/common/NBIContext;Lcom/nbi/map/data/Place;Lcom/nbi/map/data/Place;Lcom/nbi/map/data/RouteOptions;Lcom/nbi/map/route/RouteListener;)V
    .locals 6

    const/4 v5, 0x1

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    new-instance v0, Lcom/nbi/map/data/Place;

    invoke-direct {v0}, Lcom/nbi/map/data/Place;-><init>()V

    invoke-virtual {v0, p2}, Lcom/nbi/map/data/Place;->copy(Lcom/nbi/map/data/Place;)V

    new-instance v1, Lcom/nbi/map/data/Place;

    invoke-direct {v1}, Lcom/nbi/map/data/Place;-><init>()V

    invoke-virtual {v1, p3}, Lcom/nbi/map/data/Place;->copy(Lcom/nbi/map/data/Place;)V

    iput-object p1, p0, Lcom/nbi/map/route/RouteRequest;->le:Lcom/nbi/common/NBIContext;

    iput-object p5, p0, Lcom/nbi/map/route/RouteRequest;->lf:Lcom/nbi/map/route/RouteListener;

    new-instance v3, Lnbisdk/oz;

    invoke-direct {v3}, Lnbisdk/oz;-><init>()V

    sget-object v2, Lnbisdk/oz;->uy:Ljava/lang/Integer;

    invoke-virtual {v3, v2, v5}, Lnbisdk/oz;->a(Ljava/lang/Integer;Z)V

    sget-object v2, Lnbisdk/oz;->uz:Ljava/lang/Integer;

    invoke-virtual {v3, v2, v5}, Lnbisdk/oz;->a(Ljava/lang/Integer;Z)V

    sget-object v2, Lnbisdk/oz;->uK:Ljava/lang/Integer;

    invoke-virtual {v3, v2, v5}, Lnbisdk/oz;->a(Ljava/lang/Integer;Z)V

    sget-object v2, Lnbisdk/oz;->uJ:Ljava/lang/Integer;

    invoke-virtual {v3, v2, v5}, Lnbisdk/oz;->a(Ljava/lang/Integer;Z)V

    sget-object v2, Lnbisdk/oz;->uB:Ljava/lang/Integer;

    invoke-virtual {v3, v2, v5}, Lnbisdk/oz;->a(Ljava/lang/Integer;Z)V

    sget-object v2, Lnbisdk/oz;->uG:Ljava/lang/Integer;

    invoke-virtual {v3, v2, v5}, Lnbisdk/oz;->a(Ljava/lang/Integer;Z)V

    sget-object v2, Lnbisdk/oz;->uD:Ljava/lang/Integer;

    invoke-virtual {v3, v2, v5}, Lnbisdk/oz;->a(Ljava/lang/Integer;Z)V

    sget-object v2, Lnbisdk/oz;->uC:Ljava/lang/Integer;

    invoke-virtual {v3, v2, v5}, Lnbisdk/oz;->a(Ljava/lang/Integer;Z)V

    sget-object v2, Lnbisdk/oz;->uH:Ljava/lang/Integer;

    invoke-virtual {v3, v2, v5}, Lnbisdk/oz;->a(Ljava/lang/Integer;Z)V

    sget-object v2, Lnbisdk/oz;->uI:Ljava/lang/Integer;

    invoke-virtual {v3, v2, v5}, Lnbisdk/oz;->a(Ljava/lang/Integer;Z)V

    sget-object v2, Lnbisdk/oz;->uM:Ljava/lang/Integer;

    invoke-virtual {v3, v2, v5}, Lnbisdk/oz;->a(Ljava/lang/Integer;Z)V

    invoke-static {}, Lnbisdk/dn;->cC()Lnbisdk/dn;

    move-result-object v2

    invoke-virtual {v2, v5}, Lnbisdk/dn;->b(S)V

    new-instance v4, Lnbisdk/ag;

    invoke-virtual {v0}, Lcom/nbi/map/data/Place;->getInternalObject()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lnbisdk/ej;

    invoke-virtual {v1}, Lcom/nbi/map/data/Place;->getInternalObject()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lnbisdk/ej;

    invoke-virtual {p4}, Lcom/nbi/map/data/RouteOptions;->getInternalObject()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lnbisdk/bb;

    invoke-direct {v4, v0, v1, v2, v3}, Lnbisdk/ag;-><init>(Lnbisdk/ej;Lnbisdk/ej;Lnbisdk/bb;Lnbisdk/oz;)V

    iput-object v4, p0, Lcom/nbi/map/route/RouteRequest;->ld:Lnbisdk/ag;

    iget-object v1, p0, Lcom/nbi/map/route/RouteRequest;->ld:Lnbisdk/ag;

    invoke-virtual {p1}, Lcom/nbi/common/NBIContext;->getInternalObject()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lnbisdk/bl;

    invoke-virtual {v0}, Lnbisdk/bl;->df()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v1, v0}, Lnbisdk/ag;->d(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/nbi/map/route/RouteRequest;->ld:Lnbisdk/ag;

    invoke-virtual {v0, v5}, Lnbisdk/ag;->b(Z)V

    return-void
.end method


# virtual methods
.method public cancelRequest()V
    .locals 1

    iget-object v0, p0, Lcom/nbi/map/route/RouteRequest;->lc:Lnbisdk/h;

    invoke-virtual {v0}, Lnbisdk/h;->cancelRequest()V

    return-void
.end method

.method public getInternalObject()Ljava/lang/Object;
    .locals 1

    iget-object v0, p0, Lcom/nbi/map/route/RouteRequest;->lc:Lnbisdk/h;

    return-object v0
.end method

.method public getNBIContext()Lcom/nbi/common/NBIContext;
    .locals 1

    iget-object v0, p0, Lcom/nbi/map/route/RouteRequest;->le:Lcom/nbi/common/NBIContext;

    return-object v0
.end method

.method public isRequestInProgress()Z
    .locals 1

    iget-object v0, p0, Lcom/nbi/map/route/RouteRequest;->lc:Lnbisdk/h;

    invoke-virtual {v0}, Lnbisdk/h;->isRequestInProgress()Z

    move-result v0

    return v0
.end method

.method public startRequest()V
    .locals 2

    new-instance v0, Lnbisdk/nt;

    iget-object v1, p0, Lcom/nbi/map/route/RouteRequest;->lf:Lcom/nbi/map/route/RouteListener;

    invoke-direct {v0, p0, v1}, Lnbisdk/nt;-><init>(Lcom/nbi/map/route/RouteRequest;Lcom/nbi/map/route/RouteListener;)V

    iget-object v1, p0, Lcom/nbi/map/route/RouteRequest;->le:Lcom/nbi/common/NBIContext;

    invoke-virtual {v1}, Lcom/nbi/common/NBIContext;->getInternalObject()Ljava/lang/Object;

    new-instance v1, Lnbisdk/ib;

    invoke-direct {v1, v0}, Lnbisdk/ib;-><init>(Lnbisdk/qp;)V

    invoke-static {}, Lnbisdk/bl;->gR()Lcom/navbuilder/nb/f;

    new-instance v0, Lnbisdk/pg;

    invoke-direct {v0, v1}, Lnbisdk/pg;-><init>(Lnbisdk/mg;)V

    new-instance v1, Lnbisdk/kq;

    invoke-direct {v1, v0}, Lnbisdk/kq;-><init>(Lnbisdk/qp;)V

    iput-object v1, p0, Lcom/nbi/map/route/RouteRequest;->lc:Lnbisdk/h;

    iget-object v0, p0, Lcom/nbi/map/route/RouteRequest;->lc:Lnbisdk/h;

    iget-object v1, p0, Lcom/nbi/map/route/RouteRequest;->ld:Lnbisdk/ag;

    invoke-virtual {v0, v1}, Lnbisdk/h;->a(Lnbisdk/ag;)V

    return-void
.end method
